﻿using Aspose.Words;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Word_WR
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            string path = "‪F:\\TestFile\\Excel-Word/Test.docx";

            Document doc = new Document(path);

            DocumentBuilder documentBuilder = new DocumentBuilder(doc);
            string imgPath = "‪F:\\TestFile\\3740.png";
            documentBuilder.InsertImage(imgPath);

            doc.Save("‪F:\\TestFile\\newDoc.docx");

        }
    }
}
